<div class="panelTabs">
	<div class="tabs">
		<a class="label" title="{'User profile'|t}">{'User profile'|t}</a>
	</div>
</div>
<div class="backgroundFrame970Top"></div>
<div class="backgroundFrame970"><div class="content">
		<div class="panelUserAvatar">
			<img src="{$urlStatic}/{image src=$user->getAvatar() w=150 h=150}" title="{$user->getFirstName()} {$user->getLastName()}" alt="{$user->getFirstName()} {$user->getLastName()}"/>
			<h1>{$user->getFirstName()}<br/>{$user->getLastName()}</h1>
		</div>


		<div class="panelUserInfo">
			<table cellpadding="0" cellspacing="0" align="center" class="panelProfle">
				<tr><td class="label">{'Age'|t}:</td><td>{$user->getAge()}</td></tr>
				<tr><td class="label">{'NTPR'|t}:</td><td>{$user->userExtendedProfile->getNtrp()}</td></tr>
				<tr><td class="label">{'Location'|t}:</td><td>{if $user->getCity()}{$user->getCity()},{/if} {if $user->getState()}{$user->getState()},{/if} {if $user->getLocation()}{$user->getLocation()}{/if}</td></tr>
				<tr><td class="label">{'Comments'|t}:</td><td>{$user->getCommentsCount()}</td></tr>
				<tr><td class="label">{'Product opinions'|t}:</td><td>{$user->getProductCommentsCount()}</td></tr>
				<tr><td class="label">{'Connnections'|t}:</td><td>{$user->GetConnectionsCount()} {'friends'|t}</td></tr>
			</table>
		</div>


		<div class="panelProfileRank">
			<div class="tennizoomPointsTab">
				<span>{'tennizoom points'|t}</span>
				{$user->getPoints()}
				<a href="{url label=userPointsDetails idUser=$user->getId()}" title="{'details'|t}">{'details'|t}</a>
			</div>
		</div>

		<div class="clearBoth"></div>
		<!-- content -->
	</div>
	<div class="profileLinks">
		{if $_userLoggedIn}
		{if $user->getId()!=$_user->getId() && !$isFriend}<a href="{url label=newConnect idUser=$user->getId()}" title="{'connect to friend'|t}" class="connectFriend">{'connect to friend'|t}</a>{/if}
	{if $user->getId()!=$_user->getId()}<a href="{url label=newMessage idUser=$user->getId()}" title="{'send message'|t}" class="sendMessage">{'send message'|t}</a>{/if}
{if $user->getId()==$_user->getId()}<a href="{url label=editProfile}" title="{'edit my profile'|t}" class="edit">{'edit my profile'|t}</a>{/if}
{if $user->getId()!=$_user->getId() && $isFriend}<a href="{url label=removeConnect idUser=$user->getId()}" title="{'remove from my friends'|t}" class="disconnectFriend">{'remove from my friends'|t}</a>{/if}
{else}
	<a href="{url label=login}" title="{'connect to friend'|t}" class="connectFriend">{'connect to friend'|t}</a>
	<a href="{url label=login}" title="{'send message'|t}" class="sendMessage">{'send message'|t}</a>
{/if}
</div>
</div>
<div class="backgroundFrame970Bottom"></div>
<br/>
<div class="panelTabs">
	<div class="tabs">
		<a class="label" title="Points history">{"Points history"|t}</a>
	</div>
</div>
<div class="backgroundFrame970Top"></div>
<div class="backgroundFrame970">    
	<div class="productContent">
		{if $activityPoints}
		<table cellspacing="0" cellpadding="0" class="spec">
			<thead>
				<tr><th class="pointsHistoryDate">{"date"|t}</th>
					<th class="pointsHistoryPoints">{"points"|t}</th>
					<th class="pointsHistoryAction">{"action"|t}</th>
				</tr></thead>

			<tbody>
				{foreach from=$activityPoints item=item name=points}
				<tr class="{if $smarty.foreach.points.iteration is even}even{/if}">
					<td>
						{$item->getDate()|date_format:"%Y-%m-%d"}
					</td>
					<td class="pointsHistoryPointsValue">{$item->getPoints()}</td>
					<td class="pointsHistoryActionValue">{$item->dictActions->getDescription()|t}</td>	
				</tr>
				{/foreach}			

			</tbody>
		</table>
		{else}
			<h3>{"brak aktywności"|t}</h3>			
		{/if}

	</div> 

	<div class="clearBoth"></div>
</div>
<div class="backgroundFrame970Bottom"></div>
